package com.ban.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ban
 * @date 2021/1/31 - 15:18
 */
@RestController
public class StudentController {

    @Autowired
    private StudentService studentService;

    @RequestMapping("/findStudentById")
    public Student findStudentById(int id) {


        return studentService.findStudentById(id);

    }


}
